/* Imports */
@import "compass/css3";
@import url("/media/css/reset.css");
@import "settings";

/***** Global *****/
/* Body */
body {
	background: $clean-pondwater-color url('../images/bg.png');
	color: $default-color;
	font-size: percentage($base-font-size); /* Base font size: 14px */
	font-family: 'Trebuchet MS', Trebuchet, 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif;
	line-height: 1.429;
	margin: 0;
	padding: 0;
	text-align: left;
}

/* Headings */
h1 {font-size: ($h1_font_size/16)}
h2 {font-size: (($h1_font_size - 2)/16)}	/* 22px */
h3 {font-size: (($h1_font_size - 4)/16)}	/* 20px */
h4 {font-size: (($h1_font_size - 6)/16)}	/* 18px */
h5 {font-size: (($h1_font_size - 8)/16)}	/* 16px */
h6 {font-size: (($h1_font_size - 10)/16)}		/* 14px */

h2, h3, h4, h5, h6 {
	font-weight: 400;
	line-height: 1.25;
	margin-bottom: .5em;
	color: darken($beach-complement-color, 15%);
}
	
/* Anchors */
a {
	outline: 0;
	img {border: 0px; text-decoration: none;}
	&:link, &:visited {
		color: $unreal-food-pills-color; /*$giant-goldfish-color;*/
		padding: 0 1px;
		text-decoration: underline;
	}
	&:hover, &:active {
		background-color: $unreal-food-pills-color;
		color: #fff;
		text-decoration: none;
		text-shadow: 1px 1px 1px #333;
	}
}
	
/* Paragraphs */
p {margin-bottom: 1.14859em;}
* p:last-child {margin-bottom: 0;}

strong, b {font-weight: bold;}
em, i {font-style: italic;}

::-moz-selection {background: #F6CF74; color: #fff;}
::selection {background: #F6CF74; color: #fff;}

/* Lists */
ul {
	list-style: outside disc;
	margin: 1em 0 1.5em 1.5em;
}

ol {
	list-style: outside decimal;
	margin: 1em 0 1.5em 1.5em;
}

dl {margin: 0 0 1.5em 0;}
dt {font-weight: bold;}
dd {margin-left: 1.5em;}

/* Quotes */
blockquote {font-style: italic;}
cite {}

q {}

/* Tables */
table {margin: .5em auto 1.5em auto; width: 98%;}
	
	/* Thead */
	thead th {padding: .5em .4em; text-align: left;}
	thead td {}

	/* Tbody */
	tbody td {padding: .5em .4em;}
	tbody th {}
	
	tbody .alt td {}
	tbody .alt th {}
	
	/* Tfoot */
	tfoot th {}
	tfoot td {}
	
/* HTML5 tags */
header, section, footer,
aside, nav, article, figure {
	display: block;
}

/***** Layout *****/
.body {clear: both; margin: 0 auto; width: $body-width;}
img.right figure.right {float: right; margin: 0 0 2em 2em;}
img.left, figure.left {float: right; margin: 0 0 2em 2em;}

/*
	Header
*****************/

header {
    width: $body-width;
    margin: 0px auto;
    display: block;
	padding-top: 20px;
	
	/* Header */
	h1 {
		font-size: 3.571em; line-height: .85;
		strong {font-size: 0.36em; font-weight: normal;}
		a:hover, a:active,
		a:link, a:visited {
			color: $beach-complement-color;
			display: block;
			font-weight: bold;
			margin: 0 0 .6em 0;
			text-decoration: none;
			width: 90%;
			padding: 0;
			background-color: transparent;
		}
	}	
	
	h2 {
		font-size: 1.571em; line-height: .6;
		color: $beach-complement-color;
		display: block;
		font-weight: normal;
		margin: 0 0 .8em .2em;
		text-decoration: none;
		width: 90%;
	}

}

#logo a:active {
        background: transparent !important;
}


/* Main Nav */
#header nav {
	background: $beach-complement-color;
	font-size: 1.143em;
	height: 40px;
	line-height: 30px;
	margin: 0 auto 0 auto;
	padding: 0;
	text-align: center;
	width: $body-width;
	
	/*@include rounded(4px);*/
	@include border-radius(4px 4px 0 0);
	@include box-shadow($beach-complement-color 0px 2px 4px);
	z-index: 100;
	position:relative;
		
	ul {list-style: none; margin: 0 auto; width: $body-width;}
	li {float: left; display: inline; margin: 0;
		a {
			text-decoration: none;
			&:link, &:visited {
				color: $beach-storm-color;
				display: inline-block;
				height: 30px;
				padding: 5px 1.5em;
			}
		}
		a:hover, a:active, &.active a:link, &.active a:visited {
			color: $beach-storm-color;
			background: $nav-bg-color;
			text-shadow: none !important;
		}
	}
	
	li:first-child a {
		border-top-left-radius: 5px;
		-moz-border-radius-topleft: 5px;
		-webkit-border-top-left-radius: 5px;
		
		border-bottom-left-radius: 5px;
		-moz-border-radius-bottomleft: 5px;
		-webkit-border-bottom-left-radius: 5px;
	}
}
	

/*
	Body
*****************/
#content {
	z-index: 50;
	 position:relative;
	
    width: $body-width;
    margin: 0px auto;
 
 	margin-bottom: 20px;

	background: transparent;
	
	section.hfeed {
		z-index: 50;
		float:left;
	    padding: 10px $section-pad-right 20px $section-pad-left;
	    width: $section-width;
		background: $beach-storm-color;
		@include border-radius(0px 0px 0 10px);
		
		article.hentry {
			color: $beach-complement-color;
			/*border-bottom: 1px solid $beach-shade-color;*/
			margin-bottom: 1.2em;
			
			footer { margin-bottom: 2em; }
			
			&:last-child {
				border-bottom: 0;
				margin-bottom: 0;
				footer {margin-bottom: 0;} 
			}
			
			.entry-title a:link, .entry-title a:visited {text-decoration: none;}
			
			hgroup {
				h3, h3 a {
					color: $giant-goldfish-color !important;
				}
			}	
		}
	}
	
	aside.side-menu {
		z-index: 50;
	    padding: 10px $pad-sidebar-right 20px $pad-sidebar-left;
	    width: $sidebar-width;
		float:right;
	 	background: $beach-storm-color;
		@include box-shadow(complement($beach-storm-color) 0px 0px 4px);
		@include border-radius(0px 0px 10px 0px);
		
		.social {
			margin: 0 auto 3em auto; 
			overflow: hidden;
			font-size: 1.05em;

			ul {
				list-style: none; margin: 0;
			}
			
			a {
				background-repeat: no-repeat;
				background-position: 3px 16px;
				padding-left: 25px;
				
				&[href*='facebook.com'] {background-image: url('/media/images/icons/facebook.png');}
				&[href*='/feed/'] {background-image: url('/media/images/icons/rss.png');}
				&[href*='twitter.com'] {background-image: url('/media/images/icons/twitter.png');}
				
				&:hover, &:active {
					color: $giant-goldfish-color;
					background-repeat: no-repeat;
					background-position: 3px 16px;
					background-color: transparent;
					padding-left: 25px;
				}
				&:link, &:visited {
					color: $unreal-food-pills-color;
					display: block;
					text-decoration: none;
				}
			}
	
		}
		
		.side-menu-box {
			border: 1px solid darken($beach-storm-color,50%);
			margin: 0 10px 50px 10px;
			@include border-radius(5px);
			
			ul {
				list-style: none;
			    padding: 0px 0px 0px 6px;
				margin: 0;
				    
				li {
					line-height: 1.5em;
				    font-size: 0.82em;
					    
					a {
						padding: 10px 0px 10px 10px;
						display: block;
						font-weight: normal;
						text-decoration: none !important;
							    
						&:hover {
							background: $unreal-food-pills-color;
							color: #F6CF74;
							text-shadow: 1px 1px 1px #333;
						}
								
					}
				}
			}
		}
		
	    ul {
	        list-style: none;
	        padding: 0px 0px 0px 6px;
		    
			li {
		        line-height: 1.5em;
		        font-size: 1.2em;
		        border-bottom: 1px dotted #d9d9d9;
			    
				a {
			        padding: 10px 0px 10px 10px;
			        display: block;
			        font-weight: normal;
					text-decoration: none !important;
				    
					&:hover {
				        background: $unreal-food-pills-color;
						color: #F6CF74;
						text-shadow: 1px 1px 1px #333;
				    }
					
			    }
		    }
	    }
	 
		h2 {
			background-color: $unreal-food-pills-color;
			color: $beach-storm-color;
			text-shadow: 1px 1px 1px #333;
			line-height: 1.4;
			padding-left: 1em;
		}
	}
}



x:-moz-any-link, x:only-child {
    float: left;
}
 
x:-moz-any-link, x:only-child {
    float: right;
}

 
article {
    text-align: justify;
    line-height: 1.5em;
    color: $beach-complement-color;
    display: block;
}


hr {
    border-bottom: 0px;
    border-left: 0px;
    border-right: 0px;
    border-top: 1px dotted #d9d9d9;
}
 	

/*
	Footer
*****************/


footer {
	#contentinfo {padding-bottom: 2em; text-align: right;}
	
	#organization {
		$hgroup-width: 300px;
		
		@include border-radius(4px);
		background: $beach-complement-color;
		font-style: normal;
		margin-bottom: 1em;
		overflow: hidden;
		text-align: left;
		width: $body-width;
		color:$beach-storm-color;
		
		hgroup {
			float: left;
			display: block;
			width: $hgroup-width;
			padding: 20px 10px 20px 20px;
			
			h1 {
				color: $giant-goldfish-color; display: block; font-size: 1.286em;text-decoration: none;
				a {text-decoration: none;}
			}
		}
		
		ul.img-list {
			$ul-width : $body-width - $hgroup-width - 60;
			float:right;
			display: block;
			padding: 20px 20px 5px 10px;
			width: $ul-width; 
			list-style: none; 
			margin: 0 auto;
			
			li {
				display: block;
				height: 60px;
				figure img {
					border: none;
					float: left;
					margin: 0px 5px 0px 0px;
					width: 50px;
					height: 50px;
				}
				.list-text {
					display : block;
					float   : left;
					width   : $ul-width - 55;
					p {text-align: left; margin-bottom:0.2em;}
				}
			}
		}
	}
	
	p {
		text-align: right;
	}
}


aside#gallery {
	padding: 30px 0px ;
	.slideshow {
		width: $section-width -10;
		padding: auto auto;
		height: 300px;
		@include box-shadow(darken($beach-complement-color, 15%) 0px 0px 6px);
		@include border-radius(4px 4px 0 0);
	}
}